Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene Tags #1030

Merged
merged 20 commits into from
Jul 19, 2024
Merged

Scene Tags #1030

merged 20 commits into from
Jul 19, 2024

Conversation

Dhruv-0-Arora
Copy link
Collaborator

@Dhruv-0-Arora Dhruv-0-Arora commented Jul 16, 2024

Description

Creating 2D tags that will overlay on top of the scene (as they are rendered independently) and are currently used to follow around the robots on screen but they can be used for anything. Since the tags are 2D they always are facing the user.

Screenshot 2024-07-16 at 7 01 03 PM Screenshot 2024-07-16 at 7 01 56 PM

JIRA Issue

@HunterBarclay
Copy link
Member

Looking pretty good. Adjust the name tags to look like this:

image

@Dhruv-0-Arora Dhruv-0-Arora marked this pull request as ready for review July 16, 2024 22:22
@Dhruv-0-Arora Dhruv-0-Arora requested review from HunterBarclay and a team as code owners July 16, 2024 22:22
@Dhruv-0-Arora Dhruv-0-Arora requested review from a-crowell and LucaHaverty and removed request for a team July 16, 2024 22:22
@Dhruv-0-Arora Dhruv-0-Arora self-assigned this Jul 16, 2024
@Dhruv-0-Arora Dhruv-0-Arora added the ui/ux Relating to user interface, or in general, user experience label Jul 16, 2024
Copy link
Collaborator

@a-crowell a-crowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Just be sure to remove the tag when the robot is removed.

Copy link
Collaborator

@LucaHaverty LucaHaverty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! This is looking good, just a couple comments:

For me, the tags are appearing at the bottom of robots instead of above them
image

Do you think you can add a toggle in the settings modal to disable nametag rendering? To do so:

  1. Name the preference under "GlobalPreference" in PreferenceTypes.ts and assign it a default value
  2. Add it to the settings modal (you can pretty much copy any other toggleable setting)
  3. Access it elsewhere by calling:
PreferencesSystem.getGlobalPreference<boolean>("RenderSceneTags")

Copy link
Member

@HunterBarclay HunterBarclay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple changes, all around looking good tho

fission/src/systems/scene/SceneRenderer.ts Show resolved Hide resolved
fission/src/systems/scene/SceneRenderer.ts Outdated Show resolved Hide resolved
fission/src/ui/components/SceneOverlay.tsx Outdated Show resolved Hide resolved
fission/src/systems/scene/SceneRenderer.ts Show resolved Hide resolved
@LucaHaverty LucaHaverty mentioned this pull request Jul 18, 2024
5 tasks
Used a label for consistency
Modified the WorldToPixelSpace function
Copy link
Collaborator

@LucaHaverty LucaHaverty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well and looks great, nice work!

@HunterBarclay HunterBarclay merged commit 55a2dde into dev Jul 19, 2024
13 checks passed
@HunterBarclay HunterBarclay deleted the dhruv/name-tags branch July 19, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui/ux Relating to user interface, or in general, user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants